import request from "@/utils/request";

export default {

  getProjectsByPage(current, limit) {
    return request({
      url: `/admin/project/page/${current}/${limit}`,
      method: 'GET',
    })
  },

  saveOrUpdateProject(project) {
    return request({
      url: `/admin/project/save`,
      method: 'POST',
      data: project,
    })
  },
  deleteProjectById(projectId) {
    return request({
      url: `/admin/project/del/${projectId}`,
      method: 'DELETE',
    })
  },
  getProjectInfoById(projectId) {
    return request({
      url: `/admin/project/info/${projectId}`,
      method: 'GET',
    })
  },
}